package com.xjscrm.console.chat.mq.impl;

import com.uzai.mobile.collect.api.enums.MicaMsgType;
import com.xjscrm.console.chat.cache.CacheHolder;
import com.xjscrm.console.chat.mq.MsgHandler;
import com.xjscrm.console.chat.mq.dto.StaffOfflineDTO;
import com.xjscrm.console.service.customer.merchat.MerchatChildDeviceRelationService;
import com.xjscrm.console.service.customer.wwDevice.WwDeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author mingyang.chen create in 2024/3/11 18:14
 */
@Component
@Slf4j
public class StaffOfflineMsgHandler extends TalkMsgHandler implements MsgHandler<StaffOfflineDTO> {

    @Autowired
    private WwDeviceService wwDeviceService;
    @Autowired
    private MerchatChildDeviceRelationService merchatChildDeviceRelationService;
    @Autowired
    private CacheHolder cacheHolder;

    @Override
    public MicaMsgType msgType() {
        return MicaMsgType.CONSOLE_STAFF_OFFLINE;
    }

    @Override
    public Class<StaffOfflineDTO> msgClass() {
        return StaffOfflineDTO.class;
    }

    @Override
    @Transactional
    public void doHandle(StaffOfflineDTO staffOfflineDTO) {


    }
}
